package com.lvbey.www.springcloudconfigserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
@EnableEurekaClient
@EnableConfigServer
public class SpringcloudConfigServerApplication {

    /**
     * 分布式配置文件命名规范
     * 服务名-环境.yml 或者 服务名-环境.properties
     * springcloud-feign-oder-dev.properties
     *
     * 访问配置文件方式：ip:port/config_file_name
     * 比如：http://localhost:8107/springcloud-feign-oder-dev.properties
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(SpringcloudConfigServerApplication.class, args);
    }

}
